﻿using XYS.Core.Models;

namespace XYS.Service.Core.Service;

/// <summary>
/// 当前登录人相关接口
/// </summary>
public interface ICurrentUserService
{
    /// <summary>
    /// 加载当前登录人的角色
    /// </summary>
    /// <param name="currentUserInfo"></param>
    /// <returns></returns>
    void LoadRoles(CurrentUserInfo currentUserInfo);

    /// <summary>
    /// 加载当前登录人的 部门 数据
    /// </summary>
    /// <param name="currentUserInfo"></param>
    /// <returns></returns>
    void LoadDepts(CurrentUserInfo currentUserInfo);

    /// <summary>
    /// 加载当前登录人拥有的 菜单 数据
    /// </summary>
    /// <param name="currentUserInfo"></param>
    void LoadMenus(CurrentUserInfo currentUserInfo);
}
